package com.demo.dao;

import com.demo.beans.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DeviceMapper {
    List<Device> getDeviceList(@Param("fromIndex") int fromIndex,
                               @Param("pageSize") int pageSize,
                               @Param("deviceId") Long deviceId);
   int getDeviceCount(@Param("deviceId") Long deviceId);
    int add(Device device);
    int updateDevice(@Param("id") Long id);
    int updateDevice2(@Param("id") Long id);


}
